﻿using Moq;
using NetProject.Core;
using NUnit.Framework;
using System.Data.SqlClient;

namespace NetProject.Repository.Test
{
   
    [TestFixture]
    public class RepositoryTest
    {
        
        [Test]
       public void RepsitoryObjeEklemeli()
        {
          
            var con = new Mock<NetProjectContext>();
            var sonuc = con.Setup(p => p.Database.Connection).Returns(_conecction);

            Assert.AreEqual(_conecction, con.Object.Database.Connection.ConnectionString);
        }

        static SqlConnection _conecction = new SqlConnection("server=.;initial catalog=DbNetProject; Trusted_Connection=true; MultipleActiveResultSets=True");
    }
}
